<?
$allergies_reaction = set_value('allergies_reaction',$student->hhc_allergies_reaction);
$drug_allergies_reaction = set_value('drug_allergies_reaction',$student->hhc_alergic_med_reaction);
$eye_problem_spec = set_value('eye_problem_spec',$student->dhc_sight_problems_what);
$ear_problem_spec = set_value('ear_problem_spec',$student->dhc_hearing_problems_what);
$major_ailment = set_value('major_ailment',$student->hhc_diagnosed_specify);
$recently_hospitalized = set_value('recently_hospitalized',$student->hhc_recently_hospitalized);
$major_injury = set_value('major_injury',$student->hhc_major_injury_specify);
$medication_child_taking_spec = set_value('medication_child_taking_spec',$student->hhc_medication_school_hours);
$asthma_inhaler = set_value('asthma_inhaler',$student->hhc_asthma_inhaler);
$asthma = set_value('asthma',$student->hhc_asthma);

/*
$past_illness = set_value('past_illness',$student->hhc_past_illness);
$frequent_colds = set_value('frequent_colds',$student->hhc_frequent_colds);
$frequent_headaches = set_value('frequent_headaches',$student->hhc_frequent_headaches);
$frequent_stomachaches = set_value('frequent_stomachaches',$student->hhc_frequent_stomachaches);
$frequent_dizziness = set_value('frequent_dizziness',$student->hhc_dizziness);
$frequent_vommiting = set_value('frequent_vommiting',$student->hhc_vomitting);
$major_operations = set_value('major_operations',$student->hhc_major_operations_specify);
$major_injury = set_value('major_injury',$student->hhc_major_injury_specify);
$major_ailment = set_value('major_ailment',$student->hhc_diagnosed_specify);
$medication_child_taking = set_value('medication_child_taking',$student->hhc_medication);
$medication_allergy = set_value('medication_allergy',$student->hhc_alergic_med);
$child_eating_habbit = set_value('child_eating_habbit',$student->hhc_general_eating);
$dietary_restrictions = set_value('dietary_restrictions',$student->hhc_food_restrictions);
$school_help_eating_habbit = set_value('school_help_eating_habbit',$student->hhc_school_help_eating);
*/
?>
<div>
<div class="panel callout"><h6>MEDICAL INFORMATION AND HEALTH HISTORY OF CHILD</h6></div>
		<form action="<?=site_url('update-student-profile/'.$student->enrollment_id);?>" method="POST">
	<div>
		<label style="font-weight:bold;">1. Does your child have any of the following?</label>
	</div>
	<div>
			<label style="font-weight:bold;">Allergies (please specify if yes)</label>
			<input type="text" name="allergies_reaction" value="<?=$allergies_reaction;?>">
	</div>
	<div class="clearfix"></div>
	<div>
			<label style="font-weight:bold;">Drug Allergies (please specify if yes)</label>
			<input type="text" name="drug_allergies_reaction" value="<?=$drug_allergies_reaction;?>">
	</div>
	<div class="clearfix"></div>
	<div>
		<div class="large-4 columns">
			<label style="font-weight:bold;">Asthma</label>
			<?php if($asthma!='no'){ ?><?=form_radio('asthma', 'no');?><?php }else{ ?><?=form_radio('asthma', 'no', 'checked');?><?php } ?> No <?php if($asthma=='yes'){ ?><?=form_radio('asthma', 'yes', 'checked');?><?php }else{ ?><?=form_radio('asthma', 'yes');?><?php } ?> Yes
		</div>
		<div class="large-8 columns">
			<label style="font-weight:bold;">Does your child carry an asthma inhaler?</label>
			<?php if($asthma_inhaler!='no'){ ?><?=form_radio('asthma_inhaler', 'no');?><?php }else{ ?><?=form_radio('asthma_inhaler', 'no', 'checked');?><?php } ?> No <?php if($asthma_inhaler=='yes'){ ?><?=form_radio('asthma_inhaler', 'yes', 'checked');?><?php }else{ ?><?=form_radio('asthma_inhaler', 'yes');?><?php } ?> Yes
		</div>
	</div>
	<div class="clearfix"></div>
	<div>
			<label style="font-weight:bold;">Eye or Vision problem/s (please specify if yes)</label>
			<textarea name="eye_problem_spec"><?=$eye_problem_spec;?></textarea>
	</div>
	<div class="clearfix"></div>
	<div>
			<label style="font-weight:bold;">Ear or hearing problem/s (please specify if yes)</label>
			<textarea name="ear_problem_spec"><?=$ear_problem_spec;?></textarea>
	</div>
	<div>
		<label style="font-weight:bold;">2. Any other health condition that the school should be aware of (e.g. epilepsy, diabetes, etc)</label>
		<textarea name="major_ailment"><?=$major_ailment;?></textarea>
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">3. Has your child recently been hospitalized? (please specify if yes)</label>
		<textarea name="recently_hospitalized"><?=$recently_hospitalized;?></textarea>
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">4. Has your child recently had any serious injuries? (please specify if yes)</label>
		<textarea name="major_injury"><?=$major_injury;?></textarea>
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">5. Is your child on a regular medication? if yes please specify medication and frequency.</label>
		<textarea name="medication_child_taking_spec"><?=$medication_child_taking_spec;?></textarea>
	</div>
	<div class="clearfix"></div>
	<div>
		<label style="font-weight:bold;">6. Does your child need to take any medication/s during school hours?</label> <?php if($medication_child_taking_spec!='no'){ ?><?=form_radio('medication_child_taking_spec', 'no');?><?php }else{ ?><?=form_radio('medication_child_taking_spec', 'no', 'checked');?><?php } ?> No <?php if($medication_child_taking_spec=='yes'){ ?><?=form_radio('medication_child_taking_spec', 'yes', 'checked');?><?php }else{ ?><?=form_radio('medication_child_taking_spec', 'yes');?><?php } ?> Yes
	</div>
	<div class="clearfix"></div>
	<div style="font-weight:bold;">(If yes, a letter from the Medical Doctor must be submitted and will be kept on file. Medication/s will also be kept in the school and to be dispensed only by the teacher or authorized person.)</div>
	<div class="clearfix"></div>
	<div class="clearfix"></div>
	<div>
		<input type="hidden" name="profile_id" value="<?=$student->profile_id;?>">
		<input type="hidden" name="enrollment_id" value="<?=$student->enrollment_id;?>">
		<input type="submit" name="update_health_history" value="Update Health History" class="button tiny">
	</div>
	</form>
</div>